<?php



class ReceiptItemMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.ReceiptItemMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('receipt_item');
		$tMap->setPhpName('ReceiptItem');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('STATUS_ID', 'StatusId', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('RECEIPT_ID', 'ReceiptId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('NAME', 'Name', 'string', CreoleTypes::VARCHAR, false, 512);

		$tMap->addColumn('OBJ_TYPE', 'ObjType', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('OBJ_ID', 'ObjId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('QUANTITY', 'Quantity', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('PRICE_OF_ITEM', 'PriceOfItem', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('CURRENCY_CODE', 'CurrencyCode', 'string', CreoleTypes::VARCHAR, false, 4);

		$tMap->addColumn('VAT_PCT', 'VatPct', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('TAX_FOR_ITEM', 'TaxForItem', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DISCOUNT_TOTAL', 'DiscountTotal', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('UPDATED_AT', 'UpdatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

	} 
} 